//package org.lanqiao.controller.index;
//
//import com.alibaba.dubbo.config.annotation.Reference;
//
//import org.lanqiao.login.ICategoryService;
//import org.springframework.stereotype.Controller;
//
//
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//
//import java.util.List;
//import java.util.Map;
//
//@Controller
//@RequestMapping("/index")
//public class IndexController {
//    @Reference
//    private ICategoryService categoryService;
//    @GetMapping("/index")
//    public String index(Model model){
//        List<Map> categoryList = categoryService.findCategoryTree();
//        model.addAttribute("categoryList",categoryList);
//        return "index";
//    }
//
//}
